﻿using FanaticRock.MediaSource.BilibiliAPI.Helpers;

namespace FanaticRock.MediaSource.BilibiliAPI.Extensions
{
    ///<summary>参数化列表。</summary>
    public static class ParameterExtension
    {
        ///<summary>获得查询参数</summary>
        public static string ToQureyParameter(this object obj)
        {
            return ParameterHelper.GetQureyParameter(obj);
        }

        public static async Task<string> ToWbiQueryParameter(this object obj)
        {
            return await ParameterHelper.GetWbiQureyParameter(obj);
        }

        public static async Task<string> ToQueryParameterFromMap(this Dictionary<string, string> map)
        {
            return await ParameterHelper.GetQureyParameterFromMap(map);
        }
    }
}
